import request from '@/utils/request'
// 获取电量对比
export function getPowerContrast(data) {
  return request({
    url: '/enterprise/analyse/getPowerContrast',
    method: 'post',
    data
  })
}
// 获取电量能耗对比
export function getPowerContrastAnalogy(data) {
  return request({
    url: '/enterprise/analyse/getPowerContrastAnalogy',
    method: 'post',
    data
  })
}
// 获取电能质量图表
export function getChartData(data) {
  return request({
    url: '/enterprise/electricQuality/getChartData',
    method: 'post',
    data
  })
}
// 获取顶部参数查询
// 56：监控id 7：参数类型，默认传0,点击时传对应类型id
export function getTopparameter(data) {
  return request({
    url: '/enterprise/electricQuality/index/1/0',
    method: 'get',
    data
  })
}

// 指标关联
export function getIndexGroup(data) {
  return request({
    url: '/enterprise/analyse/getParamType',
    method: 'post',
    data
  })
}

// 指标关联参数
export function getgetIndexGroupParameter(data) {
  return request({
    url: '/enterprise/analyse/getParamData',
    method: 'post',
    data
  })
}
// 指标关联图标
export function getgetIndexGroupChart(data) {
  return request({
    url: '/enterprise/analyse/getIndexGroup',
    method: 'post',
    data
  })
}
// 电量分析
export function getElectricAnalysisData(data) {
  return request({
    url: '/enterprise/electric/getChartData',
    method: 'post',
    data
  })
}
// 碳排统计
export function getPowerRanking(data) {
  return request({
    url: '/enterprise/carbon/getChartData',
    method: 'post',
    data
  })
}
// 电量排名
export function getRanking(data) {
  return request({
    url: '/enterprise/electric/getRank',
    method: 'post',
    data
  })
}
// 需量分析
export function getDemandAnalysis(data) {
  return request({
    url: '/enterprise/analyse/getMaxDemand',
    method: 'post',
    data
  })
}
